<?php 
//点击下载
include "../functions.php";
$dirArr = glob('./down/*');
if(empty($_GET)){
	define('$_GET', false);
}else{
	define('$_GET', true);
	$id=(int)$_GET['id'];
	$f=basename($dirArr[$id]);
	fi($f);
}

 ?>
 <html>
 	<head>
 		<title></title>
 	</head>
 	<body>
 		<table border="1" cellspacing="" cellpadding="">
 			<?php foreach($dirArr as $k => $v): ?>
 				<tr><td><a href="./xiazai.php?id=<?php echo $k ?>"><?php echo basename($v) ?></a></td></tr>
 			<?php endforeach ?>
 		</table>
 	</body>
 </html>